<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
</head>

<body>
  <script>
    // js 执行机制知识梳理
    setTimeout(function () {
      console.log('setTimeout')
    })

    new Promise(function (resolve) {
      console.log('promise')
      // resolve()
    }).then(function () {
      console.log('then')
    })
    console.log('console')
  </script>
</body>

</html>